<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <script>
    (function () {
      var metaEl = document.createElement('meta');
      var scale = devicePixelRatio;
      metaEl.setAttribute('name', 'viewport');
      metaEl.setAttribute('content', 'initial-scale=' + (1/scale) + ', maximum-scale=' + (1/scale) + ', minimum-scale=' + (1/scale) + ', user-scalable=no');
      document.documentElement.firstElementChild.appendChild(metaEl);
    })();
  </script>

  <title>Document</title>
  <!-- 
    比例单位
    100 vw = 1 屏幕宽度
   -->
  <style>
    body{
      margin: 0;
    }
    #box{
      display: flex;
      justify-content: center;
    }
    #box div{
      width: 46.4vw;
      height: 24vw;
      background: purple;
      margin: 0 1vw;
      font-size: 5vw;
    }
    nav{
      display: flex;
      justify-content: center;
    }
    nav a{
      margin: 0 4px;
      font-size: 3.2vw;
      text-decoration: none;
      color: red;
    }
    /* 
      min-width
      max-width
     */
    @media all and (max-width:640px) {
      nav a{
        color: green;
      }
    }
  </style>
</head>
<body>
  <div id="box">
    <div>尖货抽签</div>
    <div>新品日历</div>
  </div> 
  <nav>
    <a href="#">文字-1</a>
    <a href="#">文字-1</a>
    <a href="#">文字-1</a>
    <a href="#">文字-1</a>
    <a href="#">文字-1</a>
    <a href="#">文字-1</a>
    <a href="#">文字-1</a>
    <a href="#">文字-1</a>
  </nav>
</body>
</html>